package com.GlobalPaint.app.ui.Home.friend;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.GlobalPaint.app.R;
import com.baidu.mapapi.map.BaiduMap;
import com.baidu.mapapi.map.TextureMapView;

public class FriendDetailsActivity extends AppCompatActivity {
    private TextureMapView mTexturemap;
    private BaiduMap mBaiduMap;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_friend_details);
        mTexturemap = (TextureMapView) findViewById(R.id.mTexturemap);
        mBaiduMap = mTexturemap.getMap();
        mBaiduMap.setMapType(BaiduMap.MAP_TYPE_NORMAL);
    }
    @Override
    public void onDestroy() {
        super.onDestroy();
        //在activity执行onDestroy时执行mMapView.onDestroy()，实现地图生命周期管理
        mTexturemap.onDestroy();
    }
}
